import request from '@/utils/request'

export const tryout = (data: API.tryoutParams) => {
  return request.post<API.result>('/api/system/user/tryout/add', data)
}

export const getCode = (phone: string) => {
  return request.get<API.result>(`/api/system/common/sms/getCode/${phone}`)
}

export const userValidateCode = (params: { phone: string; code: string }) => {
  return request.get<API.result>(
    `/api/system/common/sms/userValidateCode/${params.phone}?code=${params.code}`
  )
}
